package design2.visitor.example;

import design2.visitor.example.visitor.impl.Parent;
import design2.visitor.example.visitor.impl.Principal;

public class Demo {
    public static void main(String[] args) {
        DataView dataView=new DataView();

        System.out.println("家长视角访问:");
        dataView.show(new Parent());
        System.out.println("校长视角访问:");
        dataView.show(new Principal());
    }
}
